﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProxyPattern.DemoOne
{
    public class GamePlayer : IGamePlayer
    {
        private string name = string.Empty;

        public GamePlayer(string _name)
        {
            this.name = _name;
        }

        public string killBoss()
        {
            return this.name + " 在打怪!" + Environment.NewLine;
        }

        public string login(string user, string password)
        {
            return "登錄名為：" + user + " 的用戶 " + this.name + " 登錄成功!" + Environment.NewLine;
        }

        public string upgrade()
        {
            return this.name + " 又升了一級!" + Environment.NewLine;
        }
    }

}
